package com.chen10.gobang.common.enums.response;

import lombok.Getter;

@Getter
public enum ResponseCodeEnum {
    REQUEST_SUCCESS(200, "请求成功"),
    REQUEST_ADDR_NOT_EXIST(404, "请求地址不存在"),
    REQUEST_PARAM_ERROR(600, "请求参数错误"),
    MESSAGE_EXISTED(601, "信息已经存在"),
    SERVER_RESPONSE_ERROR(500, "服务器返回错误，请联系管理员"),
    LOGIN_TIMEOUT(901, "登录超时，请重新登录");
    private Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
